package org.huatek.anders.rabbitmq;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author anders
 * @date 2018-11-14 14:40
 **/
@Component
@RabbitListener(queues = "notify.payment")
@Slf4j
public class PaymentNotifyReceive {
    @RabbitHandler
    public void receive(String msg) {
        log.info("notify.payment receive message: "+msg);
    }
}